package monitoring.application;

import java.awt.BorderLayout;

import javax.swing.BoxLayout;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

/*
 * Author : Mohamed Delhomme
 */

public class AboutApp extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	AboutApp() {
		JDialog dialog = new JDialog();
		dialog.setSize(500, 150);
		dialog.setTitle("About Uss Project Global Monitoring");
		dialog.setVisible(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		JPanel aboutPanel = new JPanel();
		aboutPanel.setLayout(new BoxLayout(aboutPanel, BoxLayout.Y_AXIS));
		aboutPanel.setVisible(true);
		
		JLabel product = new JLabel("Uss Project Global Monitoring");
		JLabel version = new JLabel("Version 1.0");
		JLabel copyright = new JLabel("(c) Copyright DistributedSystems2009 google group");
		JLabel group = new JLabel("Adam Brennan - Aqeel Kazmi - David Sworders - Lei Gao - Mohamed Delhomme");
		JLabel link = new JLabel("Visit http://code.google.com/ussproject");
		JLabel space = new JLabel(" ");
		
		JPanel productPanel = new JPanel(new BorderLayout());
		JPanel versionPanel = new JPanel(new BorderLayout());
		JPanel copyrightPanel = new JPanel(new BorderLayout());
		JPanel groupPanel = new JPanel(new BorderLayout());
		JPanel linkPanel = new JPanel(new BorderLayout());
		JPanel spacePanel = new JPanel(new BorderLayout());
		
		productPanel.add(product);
		versionPanel.add(version);
		copyrightPanel.add(copyright);
		groupPanel.add(group);
		linkPanel.add(link);
		spacePanel.add(space);

		aboutPanel.add(productPanel);
		aboutPanel.add(spacePanel);
		aboutPanel.add(versionPanel);
		aboutPanel.add(spacePanel);
		aboutPanel.add(copyrightPanel);
		aboutPanel.add(groupPanel);
		aboutPanel.add(linkPanel);
		
		dialog.add(aboutPanel);
	}

}
